package com.guigu.pd.serviceapi.basefeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "pd-base",path = "/base/transporttripstruckdriver")
public interface TripsTruckDriverFeign {

    @RequestMapping("/getbyid/{id}")
    public String getinfobyId(@PathVariable("id") String id);

    @RequestMapping("/getuserid/{id}")
    public String getuseridbytripsid(@PathVariable("id") String id);

    @RequestMapping("/gettripsid/{id}")
    public List<String> gettripsidbyuserid(@PathVariable("id") String id);

    @RequestMapping("/gettripsbytid/{id}")
    public List<String> gettripsidbytruckId(@PathVariable("id") String id);
}